
import GameRpc from "./GameRpc";

class TaskApi {
    private control: string = 'P700003'
     /**
     * 任务列表
     * @param {*} param
     * @returns 
     */
    public async list(param) {
        return await GameRpc.fetching({
            func: this.control + '.list',
            ...param
        })
    }

    /**
     * 获取奖励
     * @param param 
     * @returns 
     */
    public async getBonus(id) {
        return await GameRpc.fetching({
            func: this.control + '.getBonus',
            id
        })
    }
}
export default new TaskApi()


